SUBDIRS = m4 pixmaps include src doc browser-plugin misc po

#DEB_FILES = debian/rules debian/changelog debian/control debian/copyright debian/README.Debian debian/menu
EXTRA_DIST = config.rpath gxine.desktop autogen.sh gxine-test \
	BUGS README.de README.cs README_l10n

Applicationsdir = $(datadir)/applications
Applications_DATA = gxine.desktop

debug:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
	  (cd $$subdir && \
	   $(MAKE) $@ CFLAGS="$(DEBUG_CFLAGS)" LDFLAGS="$(DEBUG_LDFLAGS)") \
	  || exit; \
	done;
	$(MAKE) all-am CFLAGS="$(DEBUG_CFLAGS)" LDFLAGS="$(DEBUG_LDFLAGS)"

install-debug: debug
	@list='$(SUBDIRS)'; for subdir in $$list; do \
	  (cd $$subdir && \
	   $(MAKE) $@ CFLAGS="$(DEBUG_CFLAGS)" LDFLAGS="$(DEBUG_LDFLAGS)") \
	  || exit; \
	done;
	$(MAKE) install-am CFLAGS="$(DEBUG_CFLAGS)" LDFLAGS="$(DEBUG_LDFLAGS)"

prune-cache:
	-rm -f config.cache

mostlyclean-generic:
	-rm -f *~ \#* .*~ .\#* 
	-rm -f $(PACKAGE)_$(VERSION).tar.gz
	-rm -f $(distdir).tar.gz $(PACKAGE).tgz package_descriptions
	-rm -rf $(distdir)

maintainer-clean-generic:
	-@echo "This command is intended for maintainers to use;"
	-@echo "it deletes files that may require special tools to rebuild."
	-rm -f Makefile.in configure acinclude.m4 aclocal.m4
	-rm -f ltconfig ltmain.sh
	-rm -f config.guess config.sub install-sh missing mkinstalldirs
	-rm -f libtool-nofpic depcomp compile config.log

maintainer-clean-generic-hook: 
	rm -f config.status

dist: dist-pre dist-bzip2
	:

dist-pre:
	$(MAKE) -C $(top_builddir)/src mktrans
	$(MAKE) -C $(top_builddir)/misc xmltrans

translator: dist-pre
	$(MAKE) -C $(top_builddir)/po update-po
	$(MAKE) -C $(top_builddir)/misc/po update-po

ACLOCAL_AMFLAGS = -I m4
